package com.ostrich.a2104gao5.test22

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/17 13:03
 * @Description : Test22
 *
 *
 */
fun main(){
    val box1:MagicBox<Boy> = MagicBox(Boy("占三",23))
    println(box1.subject.name)
    val box2:MagicBox<Dog> = MagicBox(Dog(34))
    println(box2.subject.weight)
}